import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
import Home from "@/views/Home.vue";
import pictureVue from "@/views/picture.vue";
import result from "@/views/result.vue";
import introduceVue from "@/views/introduce.vue";
import search from "@/views/search.vue";
import homePage from "@/views/homePage.vue";
const routes: RouteRecordRaw[] = [
  {
    path: "/",
    redirect: "/index",
    children: [
      {
        path: "index",
        component: homePage,
      },
      {
        path: "home",
        component: Home,
      },
      {
        path: "picture",
        component: pictureVue,
      },
      {
        path: "introduce",
        component: introduceVue,
      },
      {
        path: "result",
        component: result,
      },
      {
        path: "search",
        component: search,
      },
    ],
  },
];
export default createRouter({
  routes,
  history: createWebHashHistory(),
});
